package com.aaa.member.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 常用地址
 * (CommonAddress)实体类
 *
 * @author makejava
 * @since 2020-11-27 14:58:29
 */
public class CommonAddress implements Serializable {
    private static final long serialVersionUID = 377160360104299306L;
    /**
     * 常用地址表id
     */
    private Integer id;
    /**
     * 客户id
     */
    private Integer memberId;
    /**
     * 地址
     */
    private String address;
    /**
     * 添加时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")//处理接收参数
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date addtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

}